import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
// 2.1 导入 vue-resource

import VueResource from 'vue-resource'
// 2.2 安装 vue-resource
Vue.use(VueResource)
Vue.http.options.root='http://127.0.0.1:8080/'
import moment from 'moment'
Vue.filter('dateFormat',function (d,p='YYYY-MM-DD HH:mm:ss') {
    return moment(d).format(p);
})
import { Header,Swipe, SwipeItem } from 'mint-ui'
import  './lib/mui/css/mui.css'
import  './lib/mui/css/icons-extra.css'
Vue.component(Header.name,Header)
Vue.component(Swipe.name,Swipe)
Vue.component(SwipeItem.name,SwipeItem)
import  app from './App.vue'
import router from './router.js'
var vm =new Vue({
    el:'#app'
    ,render:c=>c(app)
    ,router
    
})